package com.yzc.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yzc.model.entity.notification.MessageCount;
import com.yzc.model.entity.notification.MessageDto;
import com.yzc.model.entity.notification.Notification;

import java.util.List;

/**
* @author Yzc
* @description 针对表【t_notification】的数据库操作Service
* @createDate 2024-10-23 09:10:46
*/
public interface NotificationService extends IService<Notification> {




    List<MessageCount> selectByacceptuserid(Integer acceptuserid);


    List<Notification> selectBySenduserid(Integer senduserid, Integer acceptuserid);

    void updateState(Integer senduserid,Integer acceptuserid);

    void sendBysenduserid(Integer senduserid, Integer acceptuserid, String content);



    void sendGroupMessage(List<MessageDto> messageDtos);

    List<Notification> sendGroupMessageByacceptuserid(Integer acceptuserid);
}
